package com.bitejiuyeke.job_publish.dao;

import com.bitejiuyeke.job_publish.model.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MajorMapper {
    int insert(Major row);

    int insertSelective(Major row);

    Major selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Major row);

    int updateByPrimaryKey(Major row);

    /**
     * 查询所有专业和所在的院系记录
     * @return List<Major>
     */
    List<Major> selectAllInfo ();

    /**
     * 根据Id查询专业及所在院系记录
     * @param id 专业Id
     * @return 专业详情
     */
    Major selectDetailsById (@Param("id") Long id);
}